home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_databases
/
databases
/
_finder
/
!FINDER
/
!HELP
< prev
next >
Wrap
Text File
|
1992-07-26
|
6KB
|
141 lines
Finder version 1╖10
Copyright ⌐ Jonathan Marten 1992
Introduction
Finder is an application for searching data files. It is similar to my
earlier DialCode application, which was an index of telephone dialling codes
that could be searched on either the code or destination fields. However,
Finder can be extended with other index files simply by adding them to the
application.
The icon bar menu
When the application is run, it will appear on the icon bar with the
ö!finderò sprite. At this point, no data is loaded and clicking on the icon
with Select will produce an error message.
To load a data file, pop up the icon bar menu and select the required index
from the öIndexesò submenu. The data file will be loaded, and the icon bar
sprite will change to indicate the index that is loaded. The currently
loaded data file is ticked in this menu. To remove the data file from
memory, without quitting the application, select it again in the öIndexesò
submenu.
As well as the usual öInfoò and öQuitò options, the icon bar menu has a
öSaveálistò option which will be unavailable until a search has been
performed. This allows the current search results to be saved as a text
file, in the normal RiscOS way.
The search window
When a data file is loaded, click Select on the icon bar icon to open the
search window.
Enter the text to be searched for in the entry box; all searching is
case-insensitive. If öExactáMatchò is chosen, the search text must match
the selected field in the file exactly. If öStartsáWithò is selected, any
field in the file that begins with the search text will be matched. If
öContainsò is selected, any field in the file which includes the search text
will be matched.
The two radio buttons on the right select which field of the file is to be
matched; their names will change to reflect the data in the currently-
loaded file. Select the first button to search on the first field (which
the file is normally sorted on); select the second button to search on the
second field.
Click öSearchò or press Return to search the file with the current settings.
To widen the search (useful when öStartsáWithò is being used) click öBackò;
this removes the last character from the entry box and then performs the
search.
A results list window will pop up showing the results of the search. This
list can be saved as a text file by using the öSave listò option on the icon
bar menu.
Data file format
A data file is a normal text file (the file type is not important) which can
be created using Edit or any other editor, output from a database program
etc. The first few lines of the file contain general information:
Line 1 The name of the data set. This will be used on the öIndexesò
menu, in the window titles etc. (öPostaláCodesò in the example
window above). The maximum length is 30 characters.
Line 2 What the first field represents; this will be used to label the
first radio button (öPostáCodeò in the example window above).
The maximum length is 12 characters.
Line 3 What the second field represents; this will be used to label the
second radio button (öPlaceáNameò in the example above). Again,
the maximum length is 12 characters.
The data then follows: one entry per line, with the first and second fields
separated by a space. The maximum lengths of the two fields are 10 and 40
characters respectively. It is recommended that the file data is sorted on
the first field, although this is not essential.
This data file must be placed in the öDataFilesò subdirectory within the
application; the next time the application is run, it will note the new
file and add it to the öIndexesò menu.
To specify the icon bar sprite to use when that data file is selected,
design a sprite and add it to to the öSpritesò file within the application
directory. The name of this sprite must be the same as the name of the data
file. If no suitable sprite is present, the default ö!finderò sprite will
be used.
Conditions, Acknowledgements Etc.
The Finder application is public domain, and may be copied and freely used
or distributed by any person and on any medium as long as this documentation
file is included unaltered. Please report any bugs you may find, any
suggestions for improvements or any inaccuracies in the data files to me
(address below). If you generate any new data files, then please also allow
them to be distributed in the same way (I would appreciate your sending me a
copy).
While the information in any data files supplied is believed correct and is
supplied in good faith, neither the author nor any distributor of the
software will accept any liability for incorrect, missing, spurious or
out-of-date information obtained from this application, or any loss or
damage resulting from the use or misuse of such information, however caused.
The öDialCodesò data file was downloaded from a BBS a very long time ago,
and added to by me.
The öIndexMarksò and öNatPlatesò data files and sprites were created by
William Hine.
The öPostCodesò data was obtained as a shareware list. The original
conditions and disclaimer are reproduced here:
öThis file has been prepared by Peter Moore, using an Amstrad
PCWá8512 computer and LocoScriptá2 software. It is believed to be
correct at the issue date (Aprilá1988), but it would be appreciated
if any errors found could be advised. It is intended that the file
will be updated from time to time, as necessary.
The information in the file may NOT be sold for commercial purposes:
the British Post Office has given verbal permission for the
information to be released as public domain material.ò
Jonathan Marten
May 1992
Post: 11 Carmarthen Close Phone: (0252) 542431
Farnborough Arcade: #387
Hampshire E-mail: jmarten@cix.compulink.co.uk
GU14 8TJ